/*
 * @Author: 吴世扬 18368095041@163.com
 * @Date: 2024-04-01 09:21:13
 * @LastEditors: DESKTOP-D0D7KKT\Administrator 18368095041@163.com
 * @LastEditTime: 2024-12-30 12:08:33
 * @FilePath: \vue3-admin\src\utils\message.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { ElMessageBox, type messageType, ElMessage } from 'element-plus';

export const confirm = (content: string, type: messageType) => {
    return ElMessageBox.confirm(content, {
        title: '提示',
        type
    });
};

export const message = (content: string, type: messageType) => {
    ElMessage({
        message: content,
        type
    });
};
